package com.yc.documentLoanding;// src/main/java/com/example/config/ElasticsearchProperties.java

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "elasticsearch")
@Component
@Data // 或手动 getter/setter
public class ElasticsearchProperties {
    private String host;
    private int port;
    private String username;
    private String password;
    private boolean useHttps;
}